package com.bzkj.basicinfo.mapper;

import com.bzkj.basicinfo.domain.ncc.dto.NccMaterialManufacturerDto;
import com.bzkj.basicinfo.domain.ncc.NccMaterialManufacturer;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface NccMaterialManufacturerMapper
{


    /**
     * 根据code查询生产厂商
     *
     * @param code
     * @return
     */
    NccMaterialManufacturer queryNccMaterialManufacturer(String code);

    void updateNccMaterialManufacturer(NccMaterialManufacturer materialManufacturer);

    void insertNccMaterialManufacturer(NccMaterialManufacturer materialManufacturer);

    /**
     * 根据条件查询生产商信息
     *
     * @Author wangzhichao
     * @Date 2024/12/10 10:17:28
     * @Param dto
     */
    List<NccMaterialManufacturer> findNccMaterialManufacturerData(NccMaterialManufacturerDto dto);

    /**
     * 根据code修改生产商状态
     * @Author wangzhichao
     * @Date 2024/12/10 10:27:31
     * @Param code
     * @Param status
     */
    int nccMaterialManufacturerEnableStatusUpdate(@Param("code") String code, @Param("status") String status);

    Set<String> findNccBasicSkuInfoList(@Param("pkMaterial") List<String> pkMaterial);
    NccMaterialManufacturer queryNccMaterialManufacturerByPkDefDoc(@Param("pkDefDoc")  String pkDefDoc);

    /**
     * 插入或更新基础数据
     * @param nccMaterialManufacturer 基础数据
     */
    void insertOrUpdate(@Param("item") NccMaterialManufacturer nccMaterialManufacturer);
}
